package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="XTGL_YSXM"
 *     
*/
public class XtglYsxm implements Serializable {

    /** identifier field */
    private String ysxmbh;

    /** persistent field */
    private String nd;

    /** persistent field */
    private String xmbm;

    /** nullable persistent field */
    private String xmmc;

    /** nullable persistent field */
    private String yzjdBz;

    /** nullable persistent field */
    private String sjbm;

    /** persistent field */
    private String gsxmBz;

    /** persistent field */
    private String jjxmBz;

    /** persistent field */
    private String xmztBz;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;

    /** full constructor */
    public XtglYsxm(String ysxmbh, String nd, String xmbm, String xmmc, String yzjdBz, String sjbm, String gsxmBz, String jjxmBz, String xmztBz, String zt1, String zt2) {
        this.ysxmbh = ysxmbh;
        this.nd = nd;
        this.xmbm = xmbm;
        this.xmmc = xmmc;
        this.yzjdBz = yzjdBz;
        this.sjbm = sjbm;
        this.gsxmBz = gsxmBz;
        this.jjxmBz = jjxmBz;
        this.xmztBz = xmztBz;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public XtglYsxm() {
    }

    /** minimal constructor */
    public XtglYsxm(String ysxmbh, String nd, String xmbm, String gsxmBz, String jjxmBz, String xmztBz) {
        this.ysxmbh = ysxmbh;
        this.nd = nd;
        this.xmbm = xmbm;
        this.gsxmBz = gsxmBz;
        this.jjxmBz = jjxmBz;
        this.xmztBz = xmztBz;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="YSXMBH"
     *         
     */
    public String getYsxmbh() {
        return this.ysxmbh;
    }

    public void setYsxmbh(String ysxmbh) {
        this.ysxmbh = ysxmbh;
    }

    /** 
     *            @hibernate.property
     *             column="ND"
     *             length="4"
     *             not-null="true"
     *         
     */
    public String getNd() {
        return this.nd;
    }

    public void setNd(String nd) {
        this.nd = nd;
    }

    /** 
     *            @hibernate.property
     *             column="XMBM"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getXmbm() {
        return this.xmbm;
    }

    public void setXmbm(String xmbm) {
        this.xmbm = xmbm;
    }

    /** 
     *            @hibernate.property
     *             column="XMMC"
     *             length="80"
     *         
     */
    public String getXmmc() {
        return this.xmmc;
    }

    public void setXmmc(String xmmc) {
        this.xmmc = xmmc;
    }

    /** 
     *            @hibernate.property
     *             column="YZJD_BZ"
     *             length="1"
     *         
     */
    public String getYzjdBz() {
        return this.yzjdBz;
    }

    public void setYzjdBz(String yzjdBz) {
        this.yzjdBz = yzjdBz;
    }

    /** 
     *            @hibernate.property
     *             column="SJBM"
     *             length="50"
     *         
     */
    public String getSjbm() {
        return this.sjbm;
    }

    public void setSjbm(String sjbm) {
        this.sjbm = sjbm;
    }

    /** 
     *            @hibernate.property
     *             column="GSXM_BZ"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getGsxmBz() {
        return this.gsxmBz;
    }

    public void setGsxmBz(String gsxmBz) {
        this.gsxmBz = gsxmBz;
    }

    /** 
     *            @hibernate.property
     *             column="JJXM_BZ"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getJjxmBz() {
        return this.jjxmBz;
    }

    public void setJjxmBz(String jjxmBz) {
        this.jjxmBz = jjxmBz;
    }

    /** 
     *            @hibernate.property
     *             column="XMZT_BZ"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getXmztBz() {
        return this.xmztBz;
    }

    public void setXmztBz(String xmztBz) {
        this.xmztBz = xmztBz;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("ysxmbh", getYsxmbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof XtglYsxm) ) return false;
        XtglYsxm castOther = (XtglYsxm) other;
        return new EqualsBuilder()
            .append(this.getYsxmbh(), castOther.getYsxmbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getYsxmbh())
            .toHashCode();
    }

}
